package com.gray.util;


/**
 * 绝对路径
 * @author Administrator
 *
 */
public class PathUtil {
	private static String separator=System.getProperty("file.separator");
	
	public static String getImageBasePath(){
		String os = System.getProperty("os.name");
		String basePath = "";
		if(os.startsWith("Win")){
			basePath ="E:/file/image";
		}else{
			basePath="/Users/baidu/work/image";
		}
		basePath=basePath.replace("/", separator);
		return basePath;
	}
	
	public static void main(String[] args) {
		System.out.println(separator);
		System.out.println(getImageBasePath());
	}
	
}
